package com.struts2.student.dao;

import java.util.List;

import com.struts2.dao.DaoImpl;
import com.struts2.student.entity.Major;


public class MajorDaoImpl  extends DaoImpl implements MajorDao {
	/**
	 * 查询
	 * @return
	 */
	public List<Major> findMajor() {
		String hql = "from Major";
		List<Major> majorList = super.queryHql(hql);
		return majorList;
	}
}
